<!-- ### LATEST WALLPAPERS PLUGIN ### -->

<?php
include($includes_path.'/getFlickr.inc.php');
$feed = new Simplepie('http://api.flickr.com/services/feeds/photos_public.gne?id=7563379@N04&lang=en-us&format=rss_200');
$feed->handle_content_type();
?>

<h3>Latest wallpapers</h3>
<div class="album-wrapper">
    <?php
    $p=0;
    foreach ($feed->get_items() as $item):
        $p++;
        if($p <= 4) {
            ?>
    <div class="photo">
                <?php
                if ($enclosure = $item->get_enclosure()) {
                    $img = image_from_description($item->get_description());
                    $full_url = select_image($img, 3);
                    $thumb_url = select_image($img, 0);
                    ?>
        <a href="<?php print($full_url); ?>" rel="lightbox" title="<?php print($enclosure->get_title()); ?>"><img src="<?php print($thumb_url); ?>" width="75px" height="75px" title="<?php print($enclosure->get_title()); ?>" alt="<?php print($enclosure->get_title()); ?>" /></a>
                <?php } ?>
    </div>
        <?php }
    endforeach;
    ?>
</div>